package com.lry.basic.juc;

import java.util.HashMap;
import java.util.Hashtable;
import java.util.Map;

/**
 * @author:刘仁有
 * @desc:
 * @email:953506233@qq.com
 * @data:2019/9/5
 */
public class TestHashMap {
    //HASHMAP多线程死循环：https://coolshell.cn/articles/9606.html
    public static void main(String[] args) {
        Map<String,Object> params = new HashMap<>();
        params.put(null,null);
        System.out.println(params.get(null));
        Map<String,Object> table = new Hashtable<>();
        //table.put(null,null);//NullPointerException
    }
}
